import request from "@/utils/request"

export const queryAllAuth = (pageNo,pageSize) => request.get(`/auth/page/${pageNo}/${pageSize}`)
//新增权限

export const addRoleAuth = (data) => request.post(`/auth/save`, data);
// {
//   "id": 0,
//   "description": "string",
//   "code": "string",
//   "enabled": true
// }
// ... existing code ...
//删除权限
export const deleteRoleAuth = (id) => request.delete(`/auth/${id}`);
//修改权限
export const updateRoleAuth = (data) => request.put(`/auth`, data);
// {
//   "id": 0,
//   "description": "string",
//   "code": "string",
//   "enabled": true
// }
//根据id查询权限
export const queryRoleAuthById = (id) => request.get(`/auth/${id}`);